package cn.stylefeng.guns.core.exception;

import cn.stylefeng.roses.kernel.rule.exception.AbstractExceptionEnum;

public enum BusinessExceptionEnum implements AbstractExceptionEnum {
    BUSINESS_DATA_REPEAT("B10001", "数据重复"),
    BUSINESS_PUBLIC("B10002", "已发布状态，不允许编辑或者删除"),
    BUSINESS_DATA_NOT_EXITS("B10003", "数据不存在"),
    BUSINESS_CLIENT_ERROR("B10004", "clientId or secret wrong"),
    BUSINESS_ILLEGAL_CLIENTID("B10006", "illegal clientId "),
    BUSINESS_ILLEGAL_TOKEN("B10005", "illegal token"),
    BUSINESS_EXPIRED_TOKEN("B10007", "expired token"),
    BATCH_NOT_EXIST("B10008", "data not token"),
    TIME_NOT_EXIST("B10009", "已经存在时间段"),

    ;

    private final String errorCode;
    private final String userTip;

    private BusinessExceptionEnum(String errorCode, String userTip) {
        this.errorCode = errorCode;
        this.userTip = userTip;
    }

    public String getErrorCode() {
        return this.errorCode;
    }

    public String getUserTip() {
        return this.userTip;
    }
}
